<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>用户表</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../res/css/layui.css"  media="all">
<link rel="stylesheet" href="../../res/css/lj/snuser.css"  media="all">
<script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
<body>

 <div class="demoTable" style="margin-left:20px;margin-top: 10px;">
  操作人
 <div class="layui-inline">
			<input class="layui-input" style="height: 32px;" id="oper"
				autocomplete="off">
		</div>
		
状态:
		<from class="layui-form">
		<div class="layui-inline">
			<select lay-filter="aihao" id="state"
				style="width: 100px; border: 1px solid red;">
				<option value="">====请选择====</option>
				<option value="1">已审核</option>
				<option value="2">未审核</option>
			</select>
		</div>
		</from>
  <button class="layui-btn layui-btn-sm" data-type="reload" id="selectButton">搜索</button>
  <button class="layui-btn layui-btn-warm layui-btn-sm" id="insert">增加</button>

</div>
 
<table class="layui-table" lay-data="{ url:'../../userRoleAction/selectAll.action', page:true, id:'idTest'}" lay-filter="demo">
  <thead>
    <tr>
      <th lay-data="{type:'checkbox', fixed: 'left'}"></th>
        <th lay-data="{field:'userId', align:'center',templet:'#imgTpls'}">用户角色ID</th>
      	<th lay-data="{field:'userId', align:'center',templet:'#imgTpls'}">用户ID</th>
      	<th lay-data="{field:'roId', align:'center',templet:'#imgTpls'}">角色ID</th>
    
    </tr>
  </thead>
</table>



<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
           
<!-- 增加或修改的弹框 -->
<div id="addOrUpdate" style="display: none;">
	<form id="myform" class="layui-form"  method="post" action="<%=basePath %>SiteServlet?action=submit" style="margin-top: 10px;">
		<input type="hidden" name="userId" id="userId"/>
	    
	   <div class="aru">
	    <label class="layui-form-label">选择管理公司名称:</label>  
	    <div class="layui-input-block" >
	        <select name="barId" lay-filter="aihao" id="barId"  >
			</select>
	    </div>
	  </div>
	  
	   <div class="aru">
	    <label class="layui-form-label">用户姓名:</label>
	    <div class="layui-input-block">
	     <input name="userName" id="userName" class="layui-input" type="text" placeholder="请输入用户名" >
	    </div>
	  </div>
	  
	   <div class="aru">
	    <label class="layui-form-label">用户密码:</label>
	    <div class="layui-input-block">
	     <input name="userPwd" id="userPwd" class="layui-input" type="password"  placeholder="请输入用户密码">
	    </div>
	  </div>
	  
	  
	<div class="layui-form-item">
	    <label class="layui-form-label">用户性别:</label>
	    <div class="layui-input-block">
	      <input type="radio" name="userSex" id="userSex"  value="男" title="男" checked="">
	      <input type="radio" name="userSex" id="userSex"  value="女" title="女">
	    </div>
 	</div>
	  
	  <div class="aru">
	    <label class="layui-form-label">用户电话:</label>
	    <div class="layui-input-block">
	     <input name="userPhone" id="userPhone" class="layui-input" type="text"  placeholder="请输入用户电话">
	    </div>
	  </div>
	  
	 <div class="aru">
	    <label class="layui-form-label">用户邮箱:</label>
	    <div class="layui-input-block">
	     <input name="userEmail" id="userEmail" class="layui-input" type="text" placeholder="请输入用户邮箱" >
	    </div>
	  </div>
	  
	  
	 <div class="aru">
	    <label class="layui-form-label">是否有效:</label>
	    <div class="layui-input-block">
	      <select name="braName" lay-filter="aihao" id="braName" style="width:100px;border: 1px solid red;">
	        <option value="1">是</option>
	        <option value="2">否</option>
	      </select>
	    </div>
	  </div>
	
	<div class="aru">
		  <label class="layui-form-label">用户头像:</label>
		  <input type="button" class="layui-btn" id="comImage" lay-verify="comImage" name="comImage" value="上传图片">
		  <span id="FileName"></span>
		  <img class="layui-upload-img"  id="img" src="" name="img" style="width:60px;height:60px;margin-left:8px; ">
	</div>
	
	
  
   
  <div class="layui-form-item">
    <label class="layui-form-label">角色:</label>
    <div class="layui-input-block" id="ron" style="width: 100px;">
    </div>
  </div>
	
	
	<!-- 
	 <div class="aru">
	    <label class="layui-form-label">操作人:</label>
	    <div class="layui-input-block">
	     <input name="oper" id="opers" class="layui-input" type="text"  >
	    </div>
	  </div>
	 -->
	  
	 <!-- 
	 	 <div class="aru">
	    <label class="layui-form-label">用户状态:</label>
	    <div class="layui-input-block">
	      <select name="proState" lay-filter="aihao" id="proState" style="width:100px;border: 1px solid red;">
	        <option value="">====请选择====</option>
	        <option value="1">已审核</option>
	        <option value="2">未审核</option>
	      </select>
	    </div>
	  </div>
	  -->
	  
	<!-- 
		  <div class="aru">
				<label class="layui-form-label">操作时间:</label>
				<div class="layui-input-inline">
					<input type="text" class="layui-input" id="optime" name="optime"
						placeholder="yyyy-MM-dd HH:mm:ss">
				</div>
	</div>
	 -->
	  
	  <div class="aru">
	    <div class="layui-input-block">
	      <input type="button" class="layui-btn" id="sub" value="确认提交"/>
	      <a href="javascript:exit();" class="layui-btn layui-btn-danger">关闭</a>
	    </div>
	   </div>
	</form>
</div>    
          
<script src="../../res/layui.all.js" charset="utf-8"></script>
<script type="text/javascript" src="../../res/js/lj/snuser.js"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
</body>
</html>